<script type="text/html" id="tp-activity-activity">
    <div class="tools-bar">
        <div class="input-group input-group-sm search-right" style="width:200px;">
            <input type="text" name="table_search" class="form-control pull-right" placeholder="查找">
            <div class="input-group-btn">
              <button type="submit" class="btn btn-default"><i class="common-icon">&#xe603;</i></button>
            </div>
        </div>
        <div class="button-tools">
            <button type="button" class="btn btn-success" id="activity-add-btn">添加活动</button>
        </div>                  
    </div>

    <div class="content-list">
      <table class="table table-hover table-striped table-bordered" id="activity-list">
        
        <tr>
          <th>活动编号</th>
          <th>活动标题</th>
          <th>活动时间</th>
          <th>报名人数</th>
          <th>学校</th>
          <th>班级</th>
          <th style="width:170px;">操作</th>
        </tr>

        {{each list as item i}}
            <tr>
              <td>{{item.no}}</td>
              <td>{{item.title}}</td>
              <td>{{item.enddate | dateFormat 'yyyy-MM-dd'}}</td>
              <td>{{item.number||0}}</td>
              <td>{{item.school}}</td>
              <td>{{item.clazz}}</td>
              <td id="{{item.id}}">
                <button type="button" class="btn btn-link btn_edit">编辑</button>
                <button type="button" class="btn btn-link btn_remove">删除</button>
                <button type="button" class="btn btn-link btn_preview">预览</button>
              </td>
            </tr>
        {{/each}}
      </table>

      <div class="pager-nav">
      </div>
    </div>

    <div class="modal fade bs-example-modal-lg"  role="dialog" id="activity-add-dialog">
      <div class="modal-dialog modal-lg">
      </div>
      <!-- /.modal-dialog -->
    </div>
</script>
